<?php

use think\facade\Route;

// 商城配置路由
Route::group('config', function () {
    Route::group(function () {
        // 商城配置
        Route::any('basic', 'admin.Config/basic')->name('shop.admin.config.basic');
        Route::any('platform/:platform', 'admin.Config/platform')->name('shop.admin.config.platform');
        Route::any('dispatch', 'admin.Config/dispatch')->name('shop.admin.config.dispatch');
        Route::any('commission', 'admin.Config/commission')->name('shop.admin.config.commission');
        Route::any('goods', 'admin.Config/goods')->name('shop.admin.config.goods');
        Route::any('order', 'admin.Config/order')->name('shop.admin.config.order');
        Route::any('rechargeWithdraw', 'admin.Config/rechargeWithdraw')->name('shop.admin.config.rechargeWithdraw');
    })->middleware('check_rule');

    Route::any('platformStatus', 'admin.Config/platformStatus')->name('shop.admin.config.platformStatus');
    Route::get('getPlatformUrl', 'admin.Config/getPlatformUrl');
});
